package com.pcg.posgasstation.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.pcg.posgasstation.R;
import com.pcg.posgasstation.model.network.entity.GoodsItemEntity;

import java.util.List;

public class GoodsAdapter extends BaseQuickAdapter<GoodsItemEntity, BaseViewHolder> {

    public GoodsAdapter(int layoutResId, @Nullable List<GoodsItemEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GoodsItemEntity item) {
        helper.setText(R.id.tvItemGoods, item.getFood_name());
    }

}
